package com.woniu.apartment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 公寓房型对象 tb_apart_layout
 *
 * @author yy
 * @date 2023-04-03
 */
@ApiModel(value = "ApartLayout", description = "公寓房型")
public class ApartLayout implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 房型主键 */
    @ApiModelProperty("房型主键")
    private Long id;

    /** 房型名称 */
    @Excel(name = "房型名称")
    @ApiModelProperty("房型名称")
    private String layoutName;

    /** 所属公寓id */
    @Excel(name = "所属公寓id")
    @ApiModelProperty("所属公寓id")
    private Long apartmentId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLayoutName(String layoutName)
    {
        this.layoutName = layoutName;
    }

    public String getLayoutName()
    {
        return layoutName;
    }
    public void setApartmentId(Long apartmentId)
    {
        this.apartmentId = apartmentId;
    }

    public Long getApartmentId()
    {
        return apartmentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("layoutName", getLayoutName())
            .append("apartmentId", getApartmentId())
            .toString();
    }
}
